<?php

class Type
{
    private $TYPES;
    public function __construct()
    {
        $this->TYPES = array (0=>'','Bug','New Feature','Task','Improvement');
    }
    public function getTypes()
    {
        return $this->TYPES;
    }
    public function getId($type)
    {
        foreach($this->TYPES as $key=>$value)
        {
            if($type==$value) return $key;
        }
        return 0;
    }
    
}